namespace DotConferenceSql
{
    /// <summary>
    /// Base class to all where statement to narrow the
    /// class for WhereClauseQueryElement
    /// </summary>
    public class WhereStatementQueryElementBase : QueryElementBase
    {
        // true = AND, false = OR
        // Use AND by default
        private bool m_exclusivecheck = true;
        /// <summary>
        /// Gets or sets a value indicating whether to use a exclusive check
        /// AFTER this where statement
        /// </summary>
        /// <value><c>true</c>; otherwise, <c>false</c>.</value>
        public bool ExclusiveCheck
        {
            get
            {
                return m_exclusivecheck;
            }
            set
            {
                m_exclusivecheck = value;
            }
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="WhereStatementQueryElementBase"/> class.
        /// </summary>
        public WhereStatementQueryElementBase()
            : base()
        {
            Type = QueryElementType.WhereClause;
        }
    }
}